package com.lck.main.model;

import com.lck.main.server.ChessServer;

/**
 * 服务端记录的客户端数据
 */
public class ChessClient {
    private String account;

    private ChessServer.ServerThread thread;

    public ChessClient(String account, ChessServer.ServerThread thread) {
        this.account = account;
        this.thread = thread;
    }

    public ChessClient() {
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public ChessServer.ServerThread getThread() {
        return thread;
    }

    public void setThread(ChessServer.ServerThread thread) {
        this.thread = thread;
    }

    @Override
    public String toString() {
        return "ChessClient{" +
                "account='" + account + '\'' +
                ", thread=" + thread +
                '}';
    }
}
